<div ng-controller="FxproductCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'产品线'| translate}}</li>
        <li>
            {{'List'|translate}}
        </li>
        <span class="sui-form sui-form pull-right"> 
            <a href="#/fxproduct/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </span>
    </ul>
    
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'Name'|translate}}</th>
                <th>{{'返点比例'|translate}}</th>
                <!-- <th>{{'类型'|translate}}</th> -->
                <th>{{'remark'|translate}}</th>
                <th>{{'创建时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in product_list">
                <td>{{list.name}}</td>
                <td>{{list.proportion}}%</td>
                <!-- <td>
                    {{list.type == 1?"全店商品":"部分商品"}}
                </td> -->
                <td>{{list.remark}}</td>
                <td>{{list.created_time}}</td>
                <td>
                    <a href="#/fxproduct/add?product_id={{list.product_id}}" class="sui-btn btn-success">{{'edit'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>

    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="total_count" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>